package ezonsport.android.ui;

import ezonsport.android.R;
import ezonsport.android.application.EzonSportMobileV2Activity;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.Window;
import android.view.WindowManager;
import android.widget.TableRow;

//Account Manage
public class AccountManage extends Activity {
	
	private TableRow mRowLoged;
	private TableRow mRowAdd;
	
	@Override
	public void onCreate(Bundle savedInstanceState) {
		
        super.onCreate(savedInstanceState);
		requestWindowFeature(Window.FEATURE_NO_TITLE);
        setContentView(R.layout.account_manage);
        
        mRowAdd = (TableRow)findViewById(R.id.account_manage_tablerow_add);
        mRowLoged = (TableRow)findViewById(R.id.account_manage_tablerow_logined);
        
        mRowAdd.setOnClickListener(new View.OnClickListener() {
			
			@Override
			public void onClick(View v) {
				// TODO Auto-generated method stub
				Intent intent = new Intent();
				intent.setClass(AccountManage.this, LoginActivity.class);
				startActivity(intent);	
			}
        });
        
        mRowLoged.setOnClickListener(new View.OnClickListener() {
			
			@Override
			public void onClick(View v) {
				// TODO Auto-generated method stub
				Intent intent = new Intent();
				intent.setClass(AccountManage.this,EzonSportMobileV2Activity.class);
				startActivity(intent);	
			}
        });
	}
}
